pdb: execution_domain -> vcpu
authorach61@arcadians.cl.cam.ac.uk <ach61@arcadians.cl.cam.ac.uk>
Tue, 12 Jul 2005 17:00:33 +0000 (17:00 +0000)
committerach61@arcadians.cl.cam.ac.uk <ach61@arcadians.cl.cam.ac.uk>
Tue, 12 Jul 2005 17:00:33 +0000 (17:00 +0000)
tools/debugger/pdb/Domain.ml
tools/debugger/pdb/Domain.mli
tools/debugger/pdb/PDB.ml

index 2701a12ce03da09964ec13f7e2ebb4a47f8e5fc3..29754b47f86bc6da106d3b936a53cb0e5f1c8212 100644 (file)
@@ -13,28 +13,28 @@ open Intel
 type context_t =
 {
   mutable domain : int;
-  mutable execution_domain : int
+  mutable vcpu : int
 }
 
-let default_context = { domain = 0; execution_domain = 0 }
+let default_context = { domain = 0; vcpu = 0 }
 
-let new_context dom exec_dom = {domain = dom; execution_domain = exec_dom}
+let new_context new_dom new_vcpu = {domain = new_dom; vcpu = new_vcpu}
 
 let set_domain ctx value =
   ctx.domain <- value
 
-let set_execution_domain ctx value =
-  ctx.execution_domain <- value
+let set_vcpu ctx value =
+  ctx.vcpu <- value
 
 let get_domain ctx =
   ctx.domain
 
-let get_execution_domain ctx =
-  ctx.execution_domain
+let get_vcpu ctx =
+  ctx.vcpu
 
 let string_of_context ctx =
-      Printf.sprintf "{domain} domain: %d, execution_domain: %d"
-                      ctx.domain  ctx.execution_domain
+      Printf.sprintf "{domain} domain: %d, vcpu: %d"
+                      ctx.domain  ctx.vcpu
 
 external read_registers : context_t -> registers = "dom_read_registers"
 external write_register : context_t -> register -> int32 -> unit =
index 456d19489dac58a38ddebafbc47196f5e746898b..f9c92a30f59d046b38fb615a27d508c2d62e00b7 100644 (file)
@@ -17,8 +17,8 @@ val new_context : int -> int -> context_t
 
 val set_domain : context_t -> int -> unit
 val get_domain : context_t -> int
-val set_execution_domain : context_t -> int -> unit
-val get_execution_domain : context_t -> int
+val set_vcpu : context_t -> int -> unit
+val get_vcpu : context_t -> int
 
 val string_of_context : context_t -> string
 
index 12ee1f00d8232ba1325e554ac70d172e2a302e43..a8405354792c142d801edd81e0ee8d6d45a30924 100644 (file)
@@ -56,7 +56,7 @@ let find_domain dom vcpu =
       match ctx with
       |        Domain d ->
          if (((Domain.get_domain d) = dom) &&
-             ((Domain.get_execution_domain d) = vcpu))
+             ((Domain.get_vcpu d) = vcpu))
          then
            key :: list
          else
@@ -93,7 +93,7 @@ let find_xen_domain_context domain =
 let attach_debugger ctx =
   match ctx with
   | Domain d  -> Domain.attach_debugger (Domain.get_domain d) 
-                                       (Domain.get_execution_domain d)
+                                       (Domain.get_vcpu d)
   | Process p ->
       begin
        let xdom_sock = find_xen_domain_context (Process.get_domain p) in
@@ -108,7 +108,7 @@ let attach_debugger ctx =
 let detach_debugger ctx =
   match ctx with
   | Domain d  -> Domain.detach_debugger (Domain.get_domain d) 
-                                       (Domain.get_execution_domain d)
+                                       (Domain.get_vcpu d)
   | Process p  -> Process.detach_debugger p
   | _ -> raise (Unimplemented "detach debugger")